{php}
{//var_dump($list);}

{/php}
<style type="text/css">
  .app_detials_app_p{line-height: 40px;}
</style>
<div class="layui-card-body">
    
<div class="layui-form-item">
  <ul class="layui-timeline">

  <li class="layui-timeline-item">
    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
    <div class="layui-timeline-content layui-text">
      <h3 class="layui-timeline-title">{$list.app_user_name} 发出邀请于<small>{$list.createtime|format_datetime}</small></h3>
      <p class="app_detials_app_p">
      邀请信息:{$list.app_reson}
      </br>
      备注:{$list.app_remark|default="-"}
     <i class="layui-icon"></i>
      </p>
    </div>
  </li>

<hr style="width: 95%" class="layui-bg-blue">
 

    <li class="layui-timeline-item">
    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
    <div class="layui-timeline-content layui-text">
      <h3 class="layui-timeline-title">邀请来访计划</h3>
      <p class="app_detials_app_p">
       公司:{$list.app_company_name}
      </br>
       访问地点:{$list.address}
       </br>
       请在<small>{$list.app_visittime|format_datetime}</small>到达
       </br>
       受访人联系:{$list.app_mobile}

     <i class="layui-icon"></i>
      </p>
    </div>
  </li>
<hr style="width: 65%" class="layui-bg-orange">
      <li class="layui-timeline-item">
    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
    <div class="layui-timeline-content layui-text">
      <h3 class="layui-timeline-title">邀请明细</h3>
-           <!--  <p>来访状态0-未访问  1-已访问 2逾期 3逾期完成 -->
        {switch name="list.appointment_status" }
          {case value='0'}<a class="margin-10" href="javascript:;"><i class="layui-icon" style="font-size: 32px;color:#FFB800 "></i></a><br><br>
            {if $list.arrive_status != 0}
           
              {if $list.vister_arrivetime}<span>访客到达-{$list.vister_arrivetime|format_datetime|default="-"}</span><br><br>{/if}
              {if $list.security_passtime}<span>保安放行-{$list.security_passtime|format_datetime|default="-"}</span><br><br>{/if}
              {if $list.vister_meettime}<span>到达地点-{$list.vister_meettime|format_datetime|default="-"}</span><br><br>{/if}
              {if $list.vister_leavetime}<span>完成-离开-{$list.vister_leavetime|format_datetime|default="-"}</span><br><br>{/if}
              {if $list.security_refusetime}<span>保安拒绝-{$list.security_refusetime|format_datetime|default="-"}</span><br><br>{/if}
              {if $list.vister_deptleavetime}<span>离开部门-{$list.vister_deptleavetime|format_datetime|default="-"}</span><br><br>{/if}

<!-- 
状态(1-到达，2-保安放行，3-到达指定位置，4-完成-离开，5-保安拒绝，6 离开部门 -->
          {else}邀请未答应{/if}

          {/case}
          {case value='1'}<a class="margin-10" href="javascript:;"><i class="layui-icon" style="font-size: 32px;color:#009688 "></i>邀请已完成</a><br><br>

 {if $list.arrive_status != 0}
            
              {if $list.vister_arrivetime}<span>访客到达-{$list.vister_arrivetime|format_datetime|default="-"}</span><br><br>{/if}
              {if $list.security_passtime}<span>保安放行-{$list.security_passtime|format_datetime|default="-"}</span><br><br>{/if}
              {if $list.vister_meettime}<span>到达地点-{$list.vister_meettime|format_datetime|default="-"}</span><br><br>{/if}
              {if $list.vister_leavetime}<span>完成-离开-{$list.vister_leavetime|format_datetime|default="-"}</span><br><br>{/if}
              {if $list.security_refusetime}<span>保安拒绝-{$list.security_refusetime|format_datetime|default="-"}</span><br><br>{/if}
              {if $list.vister_deptleavetime}<span>离开部门-{$list.vister_deptleavetime|format_datetime|default="-"}</span><br><br>{/if}

<!-- 
状态(1-到达，2-保安放行，3-到达指定位置，4-完成-离开，5-保安拒绝，6 离开部门 -->
          {else}邀请未答应{/if}


          {/case}
          {case value='2'}<a class="margin-10" href="javascript:;"><i class="layui-icon" style="font-size: 32px;color:#009688 "></i>邀请逾期</a>{/case}
          {case value='3'}<a class="margin-10" href="javascript:;"><i class="layui-icon" style="font-size: 32px;color:#009688 "></i>邀请逾期完成</a>{/case}

          {default/}
        {/switch}
     <i  class="layui-icon">-</i>

      </p>
    </div>
  </li>
<hr style="width: 35%" class="layui-bg-green">
</ul>
        </div>

    <div class="layui-form-item text-center">
        
        <button class="layui-btn layui-btn-danger" type='button'  data-close>关闭</button>
    </div>

       
    </div>